import request from '@/utils/request-lk'

export default {


// --------------------------------------------------------
    // 获取头部内容和简介
    reqGetHeader(id: number) {
        return request.get<any, any>(`/m-revision/page/album/v2/queryAlbumPage/${id}`)
    },

    // 获取节目列表
    reqGetProgram(albumId:number,asc: any,v:number) {
        return request.get<any, any>(`/m-revision/common/album/queryAlbumTrackRecordsByPage?albumId=${albumId}&page=1&pageSize=10&asc=${asc}&countKeys=play%2Ccomment&v=${v}`)
    },

    // 获取主播信息
    reqGetAnchor(anchorId: any) {
        return request.get<any, any>(`/m-revision/common/user/queryUserInfo/${anchorId}?userCountKeys=follower`)
    },

    // 获取主播i作品
    reqGetWorks(anchorId:number) {
        return request.get<any, any>(`/m-revision/common/anchor/queryAnchorAlbumsByPage?anchorId=${anchorId}&page=${1}&pageSize=${3}&asc=${false}`)
    },

    // 获取评论的信息
    reqGetComment(albumId:number,v:number) {
        return request.get<any, any>(`/m-revision/common/album/queryAlbumCommentsByPage?page=${1}&pageSize=${10}&albumId=${albumId}&v=${v}`)
    },

    // 相似专辑
    reqAlbumData(kw:string,page: number) {
        return request.get<any, any>(`/revision/search/seo?kw=${kw}&page=${page}&rows=${6}&device=${'iPhone'}&condition=${'relation'}&spellchecker=${true}&core=${'album'}`)
    },

    // 猜你喜欢
    reqGuessLike() {
        return request.get<any, any>(`/revision/category/v2/albums?pageNum=${1}&pageSize=${5}&sort=${1}`)
    }
}